import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import about from './modules/about'

Vue.use(VueRouter)

const asyncRoutes = [
  about,
  {
    path: '/',
    name: 'Home',
    component: Home
  }
]



const router = new VueRouter({
  routes: asyncRoutes,
})

//开启历史模式 mode: 'history',
//   base: process.env.BASE_URL,
//   routes

export default router
